<template>
  <el-result style="width: 100%;" title="抱歉，当前页面您无权访问" sub-title="">
    <template #icon>
      <el-image
        style="width: 580px;"
        :src="require('@/assets/404.jpg')"
      />
    </template>
    <template #extra>
      <el-button type="primary" @click="goBack">返 回</el-button>
    </template>
  </el-result>
</template>
<script setup>
import useStore from '@/store'
import { useRouter, useRoute } from 'vue-router'

const route = useRoute()
const router = useRouter()
const { menuStore } = useStore()

const goBack = () => {
  menuStore.subtractCurrentTabRouter(route)
  router.go(-1)
}

</script>
